﻿using System.Collections.Generic;

namespace BodaNetCommunications.McComs
{
    public class Errors
    {
        public static Dictionary<string, string> ResponseError = new Dictionary<string, string>()
        {
            { "0055","异常"},
            { "C050","格式错误"},
            { "C051","写入或读取的点数超出来允许范围"},
            { "C052","写入或读取的点数超出来允许范围"},
            { "C053","写入或读取的点数超出来允许范围"},
            { "C054","写入或读取的点数超出来允许范围"}
        };
    }

    internal class CommandErrorItem
    {
        public byte ErrorCode { get; set; }
        public string Description { get; set; }
        public string Suggest { get; set; }

        public List<CommandErrorItem> SubError { get; set; }
    }
}